<?php
require('dataaccess.php');
/*$res = 	array(
			array('id'=>'123','name'=>'Mahara'),
			array('id'=>'124','name'=>'Maharagama'),
			array('id'=>'125','name'=>'Mahasona')
		);*/

$res = getLocation($_GET['q']);
echo json_encode($res);
?>